package com.example.demo.controller;


import com.example.demo.api.SpringCloudLearnApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class FeignController {

    @Autowired
    private SpringCloudLearnApi springCloudLearnApi;

    @RequestMapping("/getSpringCloudLearnDemo")
    public String getSpringCloudLearnDemo() {
        log.info("getSpringCloudLearnDemo========");
        return springCloudLearnApi.getName();
    }
}
